\documentclass{article}

\usepackage{pgfplots}

\pgfplotsset{compat=1.15}

\begin{document}

\begin{tikzpicture}
	\begin{axis}
	\addplot[domain=-2:10,samples=25] gnuplot {(3 * x^2 - 3) / ((x + 1) * (x - 4))};	
	\end{axis}
\end{tikzpicture}
\end{document}

